﻿using Api.Filter;
using Microsoft.AspNetCore.Mvc;

namespace Api.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    public class TestController : ControllerBase
    {
        [HttpGet]
        public string M0()
        {
            return HttpContext.Items["M_test"].ToString();
        }
        [HttpGet]
        [Action1]//增加filter
        public string M1()
        {
            return HttpContext.Items["M_test"].ToString();
        }

        [HttpGet]
        [Action1]//增加filter
        [Action2]//增加filter
        public string M2()
        {
            return HttpContext.Items["M_test"].ToString();
        }
    }
}
